package com.handinglian.ai.system.mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.handinglian.ai.system.entity.UserRoleRelation;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserRoleRelationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserRoleRelation record);

    int insertSelective(UserRoleRelation record);

    UserRoleRelation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserRoleRelation record);

    int updateByPrimaryKey(UserRoleRelation record);

    List<UserRoleRelation> findByRoleId(@Param("roleId")Integer roleId);

    UserRoleRelation findOneByUserId(@Param("userId")Integer userId);
}